export const tableOption = {
  selection: false,
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  dialogDirection: "rtl",
  searchMenuSpan: 6,
  menuWidth: 150,
  column: [
    {
      type: "input",
      label: "标题",
      prop: "title",
      rules: [
        {
          required: true,
          message: "请输入名称",
          trigger: "blur",
        },
      ],
      overHidden: true,
    },
    {
      label: "封面图片",
      prop: "cover",
      type: "upload",
      action: "/fastfile/upload/szgk-1256675456",
      limit: 1,
      listType: "picture-img",
      dataType: "string",
      propsHttp: {
        res: "data",
        url: "kpath",
      },
      span: 24,
      hide: false,
      rules: [
        {
          required: true,
          message: "请选择封面图片",
          trigger: "change",
        },
      ],
    },
    {
      type: "select",
      label: "类型",
      prop: "type",
      value: 1,
      dicData: [
        {
          label: "招商政策",
          value: 1,
        },
        {
          label: "产业基金",
          value: 2,
        },
        {
          label: "空间载体",
          value: 3,
        },
        {
          label: "贸易业务",
          value: 4,
        },
      ],
      rules: [
        {
          required: true,
          message: "请选择类型",
          trigger: "change",
        },
      ],
    },
    {
      type: "select",
      label: "标签",
      prop: "tag",
      multiple: true,
      dicUrl: "/bi/bipublish/tags",
      rules: [
        {
          required: true,
          message: "请选择标签",
          trigger: "change",
        },
      ],
    },
    {
      type: "input",
      label: "发布人",
      prop: "author",
      rules: [
        {
          required: true,
          message: "请输入发布人",
          trigger: "blur",
        },
      ],
    },
    {
      type: "datetime",
      label: "发布时间",
      prop: "pubTime",
      valueFormat: "yyyy-MM-dd HH:mm:ss",
      rules: [
        {
          required: true,
          message: "请选择发布时间",
          trigger: "change",
        },
      ],
    },

    {
      type: "input",
      label: "内容",
      prop: "remark",
      component: "avueUeditor",
      slot: true,
      hide: true,
      options: {
        action: "/fastfile/upload/szgk-1256675456",
        props: {
          res: "data", // 解析文件上传后的respose.JSON
          url: "kpath", // 解析responseJSON==> data.fileUrl
        },
      },
      span: 24,
    },
  ],
};
